<?php
/**
 * The main template file.
 *
 * This is the most generic template file in a WordPress theme
 * and one of the two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query.
 * E.g., it puts together the home page when no home.php file exists.
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 *
 * @package WordPress
 * @subpackage Twenty_Ten
 * @since Twenty Ten 1.0
 */

get_header(); ?>
		<div id="container">
			<div id="content" role="main">
				<div id="que-hay-al-toque" style="width: 632px;float: left;background-color: #F4F4F4;margin-bottom: 8px;padding: 6px;">
					
					<link rel="stylesheet" type="text/css" media="all" href="/wp-content/themes/rcd/style-openlayers-example.css" />
					<link rel="stylesheet" type="text/css" media="all" href="/wp-content/themes/rcd/style-openlayers-example2.css" />
					<!--script src="http://maps.google.com/maps/api/js?sensor=false"></script-->
					<script src="/wp-content/themes/rcd/js/OpenLayers.js"></script>
					<script src="/wp-content/themes/rcd/js/wmts-capabilities.js"></script>
					<div id="mapol" class="smallmap"></div>
					<script>
						var map = new OpenLayers.Map("mapol");
						
						var wms_rosario = new OpenLayers.Layer.WMS(
							"WMS-Rosario",
							"http://www.rosario.gov.ar/wms/planobase",
							{layers: "WMS-Rosario"}
						);
						map.addLayer(wms_rosario);
						var wms_rosario = new OpenLayers.Layer.WMS(
							"FotosAreas2005",
							"http://www.rosario.gov.ar/wms/planobase",
							{layers: "FotosAreas2005"}
						);
						map.addLayer(wms_rosario);
						var wms_rosario_no_base = new OpenLayers.Layer.WMS(
							"Manzanas",
							"http://www.rosario.gov.ar/wms/planobase",
							{layers: "manzanas,sentidos_de_calle", transparent: "TRUE"},
							{isBaseLayer: false}
						);
						map.addLayer(wms_rosario_no_base);

						/*var osm = new OpenLayers.Layer.OSM();
						var gmap = new OpenLayers.Layer.Google("Google Streets", {visibility: false});
						map.addLayers([osm, gmap]);*/
						
						var yelp = new OpenLayers.Icon("http://apoeylaut.rcd.pampacomcdt.com.ar/wp-content/themes/rcd/images/diversidad-sexual.png", new OpenLayers.Size(49,44));
						var newl = new OpenLayers.Layer.GeoRSS( 'GeoRSS', 'http://apoeylaut.rcd.pampacomcdt.com.ar/feed/', {'icon':yelp});
						map.addLayer(newl);
						
						map.setCenter(new OpenLayers.LonLat(-60.665817, -32.949911), 11);
						map.addControl(new OpenLayers.Control.LayerSwitcher());
//						map.zoomToMaxExtent();
					</script>

					<div id="map_canvas_page" style="width:300px; height:300px; position: absolute"></div>
					<!--script>$(document).ready(function(){initialize_page()})</script-->
					<!--/google-->					
					<div style="float: left;position: absolute;">
					<img src="/wp-content/themes/rcd/images/cortes-y-desvios.png">
					<input type=checkbox id="cb-cortes-y-desvios" checked>
					<img src="/wp-content/themes/rcd/images/diversidad-sexual.png">
					<input type=checkbox id="cb-diversidad-sexual" checked>
					</div>
					
				</div>
    		</div><!-- #content -->
			<?php get_sidebar(); ?>
		</div><!-- #container -->

<?php get_footer(); ?>
